package com.zhentao.controller;

import com.zhentao.mapper.BusinessMenuMapper;
import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.BusinessMenuService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/menu")
public class BusinessMenuController {
    @Resource
    BusinessMenuService businessMenuService;

    /**
     * 动态菜单查询
     * @return
     */
    @GetMapping("/list")
    public ResponseResult getMenu(){
        return businessMenuService.listMenu();
    }

}
